﻿@model yule.CodeBuilder.Core.PDM.TableInfo
@{
    yule.CodeBuilder.Core.IBuilder iDalbuilder = yule.CodeBuilder.Core.BuilderFactory.GetBuilder(Model, yule.CodeBuilder.Core.BuildType.IDAL);
    yule.CodeBuilder.Core.IBuilder modeleBuilder = yule.CodeBuilder.Core.BuilderFactory.GetBuilder(Model, yule.CodeBuilder.Core.BuildType.Model);
}
//////////////////////////////////
///生成时间:@System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
///DAL:@(string.Format("{0}({1})",Model.Name,Model.Core ))
//////////////////////////////////
using System;
using System.Collections.Generic;
using System.ServiceModel;

namespace @iDalbuilder.NameSpace
{
    /// <summary>
    /// @Model.Name 数据访问类
    /// </summary>
    [ServiceContract]
    public partial interface @iDalbuilder.ClassName
    {
        /// <summary>
        /// 查询实体
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [OperationContract]
        [FaultContract(typeof(yule.Common.WCF.ServiceException))]
        @(modeleBuilder.ClassFullName) Select(string id);

        /// <summary>
        /// 获取所有
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        [FaultContract(typeof(yule.Common.WCF.ServiceException))]
        IList<@(modeleBuilder.ClassFullName)> List();

    }
}